<template>
  <div v-loading="loading" style="height: 100%;">
    <iframe
      v-show="!loading"
      id="iframeVue"
      :src="url"
      width="100%"
      height="100%"
      frameborder="no"
      border="0"
    />
  </div>
</template>

<script>
import { findConfigByKeyList } from '@/api/system/config'

export default {
  data() {
    return {
      loading: false,
      url: ''
    }
  },
  watch: {
  },
  mounted() {
    this.loading = true
    findConfigByKeyList('sj_key').then(response => {
      console.log(response.data)
      var type = this.$route.query.type
      if (!this.isEmpty(type)) {
        this.url = response.data.sj_key + type + '?securityKey=' + response.data.securityKey + '&securityUserId=' + response.data.securityUserId
      }
      this.loading = false
    }).catch(() => {
      this.loading = false
    })
  },
  methods: {
  }
}
</script>
<style scoped>
</style>
